//
//  DataBaseTool.h
//  CateyeMovie
//
//  Created by dllo on 16/4/29.
//  Copyright © 2016年 anguoli. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "Header.h"
typedef NS_ENUM(NSUInteger, SelectDB) {
    SelecInTable,
    SelectNotInTable,
    SelectError,
    
    
};


@interface DataBaseTool : NSObject

{
    sqlite3 *dbPoint;
}

+ (DataBaseTool *)shareDataBase;

// 判断当前数据, 是否在数据库的表里
- (SelectDB)isExistInTable:(NSString *)scid;

- (BOOL)insertInTable:(AGLVideo *)movie;

- (BOOL)deleteFromTable:(NSString *)scid;

//- (NSMutableArray *) moreModelIsExistInEditorRecommendTable;
- (NSMutableArray *) allModelIsExistInMovieTable;

@end
